using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI.WebControls;

namespace MosziNET.Web.Gallery.Controls.Admin
{
    /// <summary>
    /// This control is responsible of creating a new folder
    /// </summary>
    public class CreateFolder : CompositeControl, ICustomControl
    {
        #region / ICustomControl Members /

        /// <summary>
        /// Fired when the folder creation is finished
        /// </summary>
        public event EventHandler<EventArgs> FinishedWorkflow;

        /// <summary>
        /// Called to finish the job of the control
        /// </summary>
        public void FinishWorkflow()
        {
            EventHandler<EventArgs> fw = this.FinishedWorkflow;
            if (fw != null)
            {
                fw(this, EventArgs.Empty);
            }
        }

        #endregion / ICustomControl Members /
    }
}
